package com.xqls.dal.dao.mybatis;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.xqls.dal.dao.PermissionDao;
import com.xqls.dal.model.Permission;
import com.xqls.dal.model.PermissionExample;
import com.xqls.dal.service.PermissionMapper;

@Repository
public class PermissionDaoImpl implements PermissionDao {

	@Autowired private PermissionMapper permissionMapper;
	
	@Override
	public List<Permission> getListByExample(PermissionExample example) {
		return this.permissionMapper.selectByExample(example);
	}

	@Override
	public List<Map<String, Object>> getPermissionList() {
		return this.permissionMapper.getPermissionList();
	}

	@Override
	public List<Map<String, Object>> getPermissionTreeList() {
		return this.permissionMapper.getPermissionTreeList();
	}
	
	@Override
	public List<Map<String, Object>> getPermissionTreeListByMap(Map<String, Object> map) {
		return this.permissionMapper.getPermissionTreeListByMap(map);
	}
	
	@Override
	public List<Permission> getListByMap(Map<String, Object> map) {
		return this.permissionMapper.getListByMap(map);
	}
}
